package common;

import java.util.Calendar;

public class TimeManager 
{
	private TimeManager() {}
	
	public static TimeManager getInstance()
	{
		if (instance == null)
		{
			synchronized(TimeManager.class)
			{
				if (instance == null)
				{
					instance = new TimeManager();	
				}
			} 
		}
		
		return instance;
	}
	
	public long getTimeInMillis()
	{
		long nowInMillis = Calendar.getInstance().getTimeInMillis();
		
		return nowInMillis;
	}
	
	private static TimeManager instance = null;
}
